(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  ["pages/user/people"], {
    "05ea": function (e, t, n) {
      "use strict";
      (function (e) {
        n("114d");
        a(n("66fd"));
        var t = a(n("6962"));

        function a(e) {
          return e && e.__esModule ? e : {
            default: e
          }
        }
        e(t.default)
      }).call(this, n("543d")["createPage"])
    },
    "0c44": function (e, t, n) {
      "use strict";
      n.r(t);
      var a = n("ec79"),
        r = n.n(a);
      for (var o in a) "default" !== o && function (e) {
        n.d(t, e, (function () {
          return a[e]
        }))
      }(o);
      t["default"] = r.a
    },
    2473: function (e, t, n) {
      "use strict";
      var a;
      n.d(t, "b", (function () {
        return r
      })), n.d(t, "c", (function () {
        return o
      })), n.d(t, "a", (function () {
        return a
      }));
      var r = function () {
          var e = this,
            t = e.$createElement;
          e._self._c
        },
        o = []
    },
    6962: function (e, t, n) {
      "use strict";
      n.r(t);
      var a = n("2473"),
        r = n("0c44");
      for (var o in r) "default" !== o && function (e) {
        n.d(t, e, (function () {
          return r[e]
        }))
      }(o);
      n("c050");
      var s, u = n("f0c5"),
        i = Object(u["a"])(r["default"], a["b"], a["c"], !1, null, null, null, !1, a["a"], s);
      t["default"] = i.exports
    },
    "820b": function (e, t, n) {},
    c050: function (e, t, n) {
      "use strict";
      var a = n("820b"),
        r = n.n(a);
      r.a
    },
    ec79: function (e, t, n) {
      "use strict";
      (function (e) {
        Object.defineProperty(t, "__esModule", {
          value: !0
        }), t.default = void 0;
        var a = r(n("5100"));

        function r(e) {
          return e && e.__esModule ? e : {
            default: e
          }
        }
        var o = {
          name: "people",
          data: function () {
            return {
              elements: [{
                title: "个人资料",
                name: "info",
                color: "green",
                cuIcon: "newsfill",
                auth: "ac"
              }],
              exit: [{
                title: "退出",
                name: "exit",
                color: "cyan",
                cuIcon: "exit",
                auth: "ac"
              }],
              personalList: {
                avatar: "",
                realname: "",
                username: "",
                post: ""
              },
              positionUrl: "/sys/position/list",
              departUrl: "/sys/user/userDepartList",
              userUrl: "/sys/user/queryById",
              userId: "",
              id: "",
              userInfo: {},
              hasUserInfo: false,
              canIUseGetUserProfile: false,
            }
          },
          watch: {
            cur: {
              immediate: !0,
              handler: function () {
                this.load()
              }
            }
          },
          methods: {
            exits: function () {
              e.showModal({
                title: "提示",
                content: "是否退出？",
                success: function (t) {
                  t.confirm ? (e.showToast({
                    title: "退出成功",
                    duration: 800
                  }), setTimeout((function () {
                    e.redirectTo({
                      url: "/pages/login/login"
                    })
                  }), 1200)) : t.cancel && console.log("用户点击取消")
                }
              })
            },
            open: function () {
              this.$refs.popup.open()
            },
            remove: function () {
              e.removeStorageSync("Access-Token")
            },
            load: function () {
              var e = this;
              this.$http.get(this.userUrl, {
                params: {
                  id: this.$store.getters.userid
                }
              }).then((function (t) {
                if (console.log("res", t), t.data.success) {
                  var n = t.data.result,
                    r = n.avatar && n.avatar.length > 0 ? a.default.getFileAccessHttpUrl(n.avatar) : "/static/avatar_boy.png";
                  e.personalList.avatar = r, e.personalList.realname = n.realname, e.personalList.username = n.username, e.personalList.post = n.post, e.personalList.depart = n.departIds
                }
              }))
            }
          }
        };
        t.default = o
      }).call(this, n("543d")["default"])
    }
  },
  [
    ["05ea", "common/runtime", "common/vendor"]
  ]
]);